﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCP.Master" AutoEventWireup="true" CodeBehind="ProductUnsubscribe.aspx.cs" Inherits="University.Workshop.WebApp.ProductUnsubscribe" %>
<%@ Register src="SimpleRating.ascx" tagname="SimpleRating" tagprefix="uc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <table style="width: 60%; height: 177px;" >
        
        <tr>
            <td class="style1">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" 
                    HorizontalAlign="Center" AllowPaging="true"
                      CellPadding="2" CellSpacing="4" >
                     <columns>
                     <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>                        
                           <input type="checkbox" ID="chkSelect" runat="server" />
                        </ItemTemplate>                      
                       </asp:TemplateField>
                     <asp:TemplateField>
                        <ItemTemplate>
                            <asp:label ID="ProductID" runat="server" text='<%# Bind("ProductID") %>' visible="false"></asp:label>
                        </ItemTemplate>
                      </asp:TemplateField>
                     
                      <asp:boundfield datafield="Name" headertext="Name" />
                      <asp:boundfield datafield="Category" headertext="Category"/>          
                      <asp:boundfield datafield="Price" headertext="Price"/>                      
                                           
                      

                    </columns>    

                </asp:GridView>
                
            </td>
            <td>
                
                <asp:Label ID="errorMsg" runat="server" ForeColor="Red" 
                    Visible="False"></asp:Label>
                
            </td>
            
        </tr>
        <tr>
        <td></td>
        <td></td>
        </tr>
        <tr>
            <td class="style1">
                
                <asp:Button ID="UnsubscribeFromSale" runat="server" Height="50px" 
                    onclick="UnsubscribeFromSale_Click" Text="Unsubscribe From Sale" Visible="true" />
                
            </td>
            <td>
                <asp:Label ID="LblProductIdSelect" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>       
    </table>
    
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 380px;
        }
        .water
        {
             font-family: Tahoma, Arial, sans-serif;
             color:gray;
        }

    </style>
    <script type="text/Javascript" src='<%=ResolveUrl("~/Scripts/jquery-1.4.1.min.js")%>'></script>
    <script language="javascript" type="text/javascript">
        $(function () {

            $(".water").each(function () {
                $tb = $(this);
                if ($tb.val() != this.title) {
                    $tb.removeClass("water");
                }
            });

            $(".water").focus(function () {
                $tb = $(this);
                if ($tb.val() == this.title) {
                    $tb.val("");
                    $tb.removeClass("water");
                }
            });

            $(".water").blur(function () {
                $tb = $(this);
                if ($.trim($tb.val()) == "") {
                    $tb.val(this.title);
                    $tb.addClass("water");
                }
            });
        });        
 
    </script>

</asp:Content>

